package com.lanou.service;

import com.lanou.bean.RoleGuanLiBean;
import com.lanou.bean.RoleInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by dllo on 18/3/10.
 */
public interface RoleInfoService {

    List<RoleInfo> selectRoles(String name);
    List<RoleInfo> findAllRoles();

    void addRole(RoleInfo roleInfo);

    void deleteRole(int id);
    RoleInfo select(String name);

    List<RoleGuanLiBean> selectadminInfo();

    RoleGuanLiBean selectRoleInfoById( int role_id);

    //根据id修改
    void upDataRoleInfo (int roleId,String name);

    RoleInfo selectRoleByRoleName(String name);

}
